/**
 * @copyright Copyright (c) 2025 CSG Digital Grid Technology (Guangdong) Co., Ltd.
 * @author Xie Jinhui
 */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H



/* Includes ------------------------------------------------------------------*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
#include <unistd.h>
#include <malloc.h>
#include <termios.h>
#include <stdarg.h>
#include <fcntl.h>
#include <pthread.h>
#include <signal.h>
#include <errno.h>

#include <sys/stat.h>
#include <sys/types.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/ioctl.h>

/**main process*/
#include "cs_getopt.h"
#include "unit.h"

/**json*/
#include "cJSON.h"

/**define & config*/
#include "config.h"
#include "esn.h"
#include "mac.h"

/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

#define JSON_LEN 2048

#define SET 1
#define RESET !SET

#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE !TRUE
#endif


#endif /* __MAIN_H */
